﻿using System.Drawing;

namespace Game
{
    public class Labirinth
    {
        public Labirinth(int level)
        {
            if (level == 1)
            {
                this.lab = new int[16, 16] { 
                                       { 3, 0, 4, 3, 0, 3, 0, 3 , 0, 0, 3, 0, 3, 0, 0, 0 },
                                       { 3, 0, 1, 4, 7, 3, 3, 3 , 0, 9, 3, 3, 3, 0, 5, 4 },
                                       { 4, 4, 1, 1, 4, 7, 3, 3 , 0, 8, 7, 3, 3, 0, 8, 0 },
                                       { 0, 4, 0, 8, 4, 4, 7, 3 , 0, 0, 0, 7, 3, 0, 1, 4 },
                                       { 4, 3, 0, 1, 4, 4, 4, 7 , 0, 5, 1, 1, 3, 0, 8, 0 },
                                       { 0, 3, 0, 8, 4, 4, 4, 4 , 4, 1, 1, 1, 4, 4, 1, 4 },
                                       { 3, 4, 4, 1, 4, 4, 4, 4 , 0, 1, 1, 1, 1, 0, 0, 1 },
                                       { 4, 4, 4, 4, 1, 4, 4, 4 , 4, 1, 8, 1, 1, 9, 4, 4 },
                                       { 0, 4, 4, 4, 4, 1, 4, 4 , 0, 8, 4, 4, 8, 7, 4, 0 },
                                       { 4, 0, 4, 0, 8, 0, 1, 3 , 4, 1, 0, 0, 4, 4, 4, 4 },
                                       { 0, 4, 1, 4, 4, 4, 7, 4 , 4, 7, 6, 0, 11, 0, 0, 0 },
                                       { 4, 0, 8, 1, 0, 3, 3, 0 , 3, 3, 4, 4, 4, 4, 9, 0 },
                                       { 0, 4, 4, 7, 3, 3, 7, 3 , 3, 0, 0, 0, 0, 0, 8, 4 },
                                       { 0, 8, 0, 4, 7, 4, 4, 7 , 3, 3, 6, 3, 6, 0, 0, 0 },
                                       { 4, 3, 0, 8, 3, 0, 4, 4 , 7, 3, 3, 3, 3, 0, 9, 0 },
                                       { 0, 3, 0, 3, 3, 0, 0, 0 , 0, 3, 0, 3, 0, 0, 1, 0 } 
                                                                                           };
                this.level = 1;
            }

        }
        public void changeLevel(int level)
        {
            if (level == 2)
            {
                this.lab = new int[16, 16] { 
                                       { 3, 0, 3, 0, 3, 0, 3, 0 , 3, 0, 3, 0, 3, 0, 4, 0 },
                                       { 3, 3, 4, 7, 3, 0, 8, 7 , 3, 0, 8, 7, 3, 3, 0, 4 },
                                       { 4, 3, 0, 4, 7, 0, 1, 4 , 7, 4, 3, 0, 7, 3, 4, 0 },
                                       { 0, 7, 4, 4, 4, 4, 8, 4 , 3, 0, 7, 4, 4, 7, 0, 4 },
                                       { 4, 4, 4, 3, 0, 0, 4, 4 , 7, 4, 4, 3, 0, 4, 4, 1 },
                                       { 0, 4, 4, 7, 0, 5, 3, 0 , 3, 0, 3, 3, 4, 3, 0, 0 },
                                       { 4, 3, 0, 3, 4, 7, 3, 3 , 4, 7, 3, 3, 0, 7, 3, 0 },
                                       { 0, 7, 3, 3, 4, 3, 3, 3 , 0, 4, 7, 3, 4, 4, 7, 0 },
                                       { 4, 4, 7, 4, 3, 3, 4, 3 , 4, 4, 4, 7, 0, 3, 0, 4 },
                                       { 0, 0, 3, 0, 7, 4, 3, 4 , 3, 0, 4, 3, 3, 3, 4, 0 },
                                       { 4, 6, 3, 4, 4, 3, 3, 0 , 7, 4, 3, 3, 3, 4, 4, 4 },
                                       { 4, 3, 4, 4, 4, 7, 3, 4 , 4, 3, 3, 3, 4, 3, 0, 0 },
                                       { 0, 4, 4, 4, 4, 4, 7, 0 , 4, 7, 3, 3, 0, 3, 3, 0 },
                                       { 4, 3, 0, 3, 0, 0, 3, 4 , 3, 0, 7, 3, 4, 4, 7, 0 },
                                       { 0, 7, 3, 3, 3, 6, 3, 0 , 7, 3, 0, 7, 3, 0, 4, 4 },
                                       { 0, 0, 3, 0, 3, 0, 3, 0 , 0, 3, 0, 0, 3, 0, 0, 0 }
                                                                                           };
                img_0 = global::Game.Properties.Resources._3_0;
                img_1 = global::Game.Properties.Resources._3_1;
                img_2 = global::Game.Properties.Resources._3_2;
                img_3 = global::Game.Properties.Resources._3_3;
                img_4 = global::Game.Properties.Resources._3_4;
                img_5 = global::Game.Properties.Resources._3_5;
                img_6 = global::Game.Properties.Resources._3_6;
                img_7 = global::Game.Properties.Resources._3_7;
                img_8 = global::Game.Properties.Resources._3_8;
                img_9 = global::Game.Properties.Resources._3_9;
                img_10 = global::Game.Properties.Resources._3_10;
                img_11 = global::Game.Properties.Resources._3_11;
                img_12 = global::Game.Properties.Resources._3_12;
                this.level = 2;
            }

        }

        public int PropLevel
        {
            get { return this.level; }
        }
        public int[,] lab; // массив клеточек 1
        private int level;
        public Bitmap img_0 = global::Game.Properties.Resources._1_0;
        public Bitmap img_1 = global::Game.Properties.Resources._1_1;
        public Bitmap img_2 = global::Game.Properties.Resources._1_2;
        public Bitmap img_3 = global::Game.Properties.Resources._1_3;
        public Bitmap img_4 = global::Game.Properties.Resources._1_4;
        public Bitmap img_5 = global::Game.Properties.Resources._1_5;
        public Bitmap img_6 = global::Game.Properties.Resources._1_6;
        public Bitmap img_7 = global::Game.Properties.Resources._1_7;
        public Bitmap img_8 = global::Game.Properties.Resources._1_8;
        public Bitmap img_9 = global::Game.Properties.Resources._1_9;
        public Bitmap img_10 = global::Game.Properties.Resources._1_10;
        public Bitmap img_11 = global::Game.Properties.Resources._1_11;
        public Bitmap img_12 = global::Game.Properties.Resources._1_12;
    }
}
